package com.app.twth.ui.returnsputatay;


import com.app.twth.app.Constant;
import com.app.twth.base.BaseModel;
import com.app.twth.bean.BaseResponseEntity;
import com.app.twth.net.JsonCallBack;
import com.lzy.okgo.OkGo;

import java.util.HashMap;
import java.util.Map;

public class ReturnsPutatayDataModel extends BaseModel {
    public <T> void waitingPutawayIbLpns(int  type, JsonCallBack jsonCallBack) {
        OkGo.<BaseResponseEntity<T>>get(Constant.waitingPutawayIbLpns+"/"+type)
                .tag(this)
                .execute(jsonCallBack);
    }
    public <T> void getIbLpnSkuList(String lpn, JsonCallBack jsonCallBack) {
        Map<String, String> map = new HashMap<>();
//        map.put("ibLpn", lpn);
        map.put("type", "2");
        OkGo.<BaseResponseEntity<T>>get(Constant.putawayIbLpnSkuList+"/"+lpn)
                .tag(this)
                .params(map)
                .execute(jsonCallBack);
    }
}